<notempty name="adList">
    <foreach name="adList" item="val">
        <eq name="val.keys" value="0"><li class="flex-box"></eq>
            <a href="{$val.link}" title="{$val.title}--{$key}"><img src="{$val['image_src']}"></a>
       <eq name="val.keys" value="1"></li></eq>
    </foreach>
</notempty>